package edu.pku.sei.act.actools.util;

public class Tuple {
	
	public static final String TUPLE = "Tuple";
	public static final String TAKE_TEMPLATE = "TTemplate";
	public static final String READ_TEMPLATE = "RTemplate";
	
	int timeToBeEffective;
	int timeToLoseEfficacy;

	public static boolean match(String template, String info, int start) {
		String[] te = template.split(",");
		String[] tu = info.split(",");
		if(te.length != tu.length)
			return false;
		for(int i=start; i<te.length; i++) {
			if(!te[i].equals("null")&&!te[i].equals(tu[i]))
				return false;
		}
		return true;
	}
	
}
